package com.example.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.example.base.Cache.Cacheable;
import com.example.base.model.BaseEntity;

import java.io.Serializable;

@Entity
@Table(name = "product_type")
public class ProductType extends BaseEntity implements Serializable, Cacheable {
	
	public final static Integer ON_SALE_NO_DISPLAY = 0;// 不显示

	public final static Integer ON_SALE_DISPLAY = 1;// 显示

	@Column(name = "product_type_name")
	private String productTypeName;// 商品类型名
	
	@Column(name = "on_sale")
	private Integer onSale;// 是否在售

	public String getProductTypeName() {

		return productTypeName;
	}

	public void setProductTypeName(String productTypeName) {

		this.productTypeName = productTypeName;
	}

	public Integer getOnSale() {
		return onSale;
	}

	public void setOnSale(Integer onSale) {
		this.onSale = onSale;
	}

}
